
import { DataSource } from "typeorm";

export const AppDataSource = new DataSource({
    name:"qmt-basic",
    type: "mysql",
    host: "localhost",
    port: 3306,
    username: "root",
    password: "Zhangjie1128!",
    database: "qmt-basic",
    entities:process.env.MODE !== "development" ? [__dirname+"/entitys/*.js"] : ["src/entitys/*.ts"],
    synchronize: true,
    // logging: true, 
})